Commutativity-Based Locking for Nested Transactions

نویسندگان

  • Alan Fekete
  • Nancy A. Lynch
  • Michael Merritt
  • William E. Weihl
چکیده

We present a new model for describing and reasoning about transaction-processing algorithms. The model provides a comprehensive, uniform framework for rigorous correctness proofs. The model generalizes previous work on concurrency control to encompass nested transactions and type-specific concurrency control algorithms. Using our model, we describe general conditions for a concurrency control algorithm to be correct—i.e., to ensure that transactions appear to be atomic. We also present a new concurrency control algorithm for abstract data types in a nested transaction system. The algorithm uses commutativity properties of operations to aflow high levels of concurrency. The results of operations, in addition to their names and argunnts, can be used in checking for conflicts, further increasing concurrency. We show, using our general model, that the new algorithm is correct. We also present a read-update locking algorithm due to Moss and prove it correct The correctness proofs for the algorithms are modular, in the sense that we consider a system structure consisting of many objects, with concurrency control and recovery performed independently at each object. We define a condition on individual objects, called dynamic a:omicUy, which has the property that as long as all objects in the system axe dynamic atomic, transactions will appear atomic. We then show that each algorithm, considered at a single object, ensures dynamic atomicity. This means that different algorithms can be used at different objects; as long as each ensures dynamic atomicity, global atomicity of transactions is guaranteed. The work of the first and second authors was supported in part by the Office of Naval Research under Contract N000t4-85-K-OlóS, by the National Science Foundation under Grant CCR-86l1442, and by the Defense Advanced Research Projects Agency (DARPA) under Contract N00014-83-K-0l25. The work of the fourth author was supported in part by the National Science Foundation under Grant CCR8716884, and by the Defense Advanced Research Projects Agency (DARPA) under Contract N000l4-83-K-0125.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Efficacy of Commutativity-based Semantic Locking in Real-world Applications

While the dominant approach to persistent storage in practice is to use a relational DBMS, there are some specialist applications that rely on object stores. The performance of these applications depends heavily on the efficiency of the object store’s concurrency control mechanism. Today’s predominant concurrency control mechanism is strict two-phase object locking. In the 80s, an interesting a...

متن کامل

A Concurrency Control Scheme for Nested Transactions

Locking rules for concurrency control in nested transaction model, in which parent/child parallelism, sibling parallelism, and arbitrary commitment-dependence relationship between transactions are allowed, are presented. The locking rules are based on the lock transformation scheme that never allows the commit deadlock to occur, which could happen by permitting parent/child parallelism. In addi...

متن کامل

Speculation Based Nested Locking Protocol to Increase the Concurrency of Nested Transactions

In this paper, we have proposed improved concurrency control protocol based on speculation for nested transuctions and explained how it increases both intraand intertransaction concurrency as compared to Mo.s.s's nested locking protocol. I n the proposed speculative nested locking (SNL) protocol, whenever a sub-trunsuctinn finishes work with a data object (produces after-image), it's purent inh...

متن کامل

Speculation to Increase the Concurrency of Nested Transactions

We have proposed an improved concurrency control protocol for nested transactions based on speculation. In the proposed speculative nested locking (SNL) protocol, whenever a sub-transaction finishes work with a data object (produces after-image), it's parent inherits the lock. The waiting sub-transaction carries out speculative executions by accessing both beforeand after-images of preceding su...

متن کامل

Applying Method Data Dependence

Concurrency control in object based systems is a new area of research that has only just begun to be addressed. Recent work has proposed using object level locking but this may be unnecessarily restrictive. Data level locking within an object increases concurrency but also introduces substantial lock overhead that makes the approach impractical. This paper proposes using a new approach applying...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. Comput. Syst. Sci.

دوره 41  شماره 

صفحات  -

تاریخ انتشار 1989